<?php

namespace App\Models;

use App\Utils\NumberToChinese;
use Illuminate\Database\Eloquent\Model;

class FinanceIncomeModel extends Model
{
    protected $table = 'finance_income';

    protected $appends = ['income_amount_display', 'actual_income_amount_display'];

    public function getIncomeAmountDisplayAttribute()
    {
        return NumberToChinese::convert($this->income_amount);
    }

    public function getActualIncomeAmountDisplayAttribute()
    {
        return NumberToChinese::convert($this->actual_income_amount);
    }
}
